<!DOCTYPE html>
<html>

<head>
    <title>小郑同学</title>
    <meta http-equiv="content-type" content="text/html; charset=utf-8">
    <meta name="viewport"
        content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />

    <style>
        .hengtu {
            width: 100%;
            height: 316px;
            background-image: url(./images/fen1.jpg);
            background-size: 100%;
        }

        .beaty {
            width: 100%;
            height: 84px;
            padding-top: 20px;
            text-align: center;

        }

        .beaty>p:nth-child(1)>a {
            font-size: 26px;
            font-family: "宋体";
        }

        .beaty>p:nth-child(1)>a>span {
            color: rgb(178, 34, 34);
        }

        .beaty>p:nth-child(2)>a {
            font-family: "raleway";
            letter-spacing: 3px;
            font-size: 13px;
        }

        aside>.fen {
            width: 974px;
            margin: 0 auto;
            display: flex;
            justify-content: center;
        }

        aside>.fen>li {
            cursor: pointer;
            line-height: 14px;
            overflow: hidden;
            white-space: nowrap;
            text-overflow: ellipsis;
            width: 80px;
            border: 1px solid rgba(226, 226, 226, 1);
            font-family: " 微软雅黑";
            font-size: 14px;
            padding: 12px 10px;
            text-align: center;
            margin-left: 15px;
        }

        .sort {
            width: 1024px;
            height: 680px;
            margin: 0 auto;
            margin-top: 20px;
            margin-bottom: 50px;
            /* float: left; */

        }

        .sort>li {
            width: 255.5px;
            height: 329px;
            float: left;
        }

        .sort>li>a {
            display: block;
        }

        .sort>li>a>div {
            width: 252.5px;
            height: 252.5px;
            overflow: hidden;
        }

        .sort>li>a>div>img {
            width: 252.5px;
            height: 252.5px;
            transition: all ease-in-out .2s;
        }

        .sort>li>a>div>img:hover {
            transform: scale(1.2);
            transition: all .6s ease;

        }

        .sort>li>a>h3 {
            width: 100%;
            height: 19.2px;
            margin-top: 10px;
            text-align: center;
            font-size: 14px;
            color: #adadad;
            font-family: "微软雅黑";
            font-weight: normal;
        }

        .sort>li>p {
            font-size: 18px;
            text-align: center;
            color: #000000;
            font-family: "georgia";
            /* font-family: "Raleway"; */
        }
    </style>
</head>

<body>
    <header></header>
    <aside>
        <div class="hengtu"></div>
        <div class="beaty">
            <p><a href="#">美<span>之</span>器物</a></p>
            <p><a href="#">Beautiful Utensil</a></p>
        </div>
        <ul class="fen">
            <li>茶道</li>
            <li>花道</li>
            <li>香道</li>
            <li>白茶</li>
        </ul>

        <ul class="sort">
            <li><a href="#">
                    <div>
                        <img src="./images/4.webp" alt="">
                    </div>
                    <h3>公道杯</h3>
                </a>
                <p>¥199.00</p>
            </li>
            <li><a href="#">
                    <div>
                        <img src="./images/21.webp" alt="">
                    </div>
                    <h3>紫砂壶</h3>
                </a>
                <p>¥500.00</p>
            </li>
            <li><a href="#">
                    <div>
                        <img src="./images/12.webp" alt="">
                    </div>
                    <h3>老铁壶</h3>
                </a>
                <p>¥19,999.00</p>
            </li>
            <li><a href="#">
                    <div>
                        <img src="./images/24.webp" alt="">
                    </div>
                    <h3>天目盏</h3>
                </a>
                <p>¥300.00</p>
            </li>
            <li><a href="#">
                    <div>
                        <img src="./images/9.webp" alt="">
                    </div>
                    <h3>柴烧花器</h3>
                </a>
                <p>¥500.00</p>
            </li>
            <li><a href="#">
                    <div>
                        <img src="./images/25.webp" alt="">
                    </div>
                    <h3>香炉</h3>
                </a>
                <p>¥1,599.00</p>
            </li>
            <li><a href="#">
                    <div>
                        <img src="./images/27.webp" alt="">
                    </div>
                    <h3>紫承</h3>
                </a>
                <p>¥300.00</p>
            </li>
            <li><a href="#">
                    <div>
                        <img src="./images/16.webp" alt="">
                    </div>
                    <h3>茶洗</h3>
                </a>
                <p>¥399.00</p>
            </li>
        </ul>

    </aside>
    <footer></footer>
</body>

</html>
<script src="./js/jQuery.js"></script>
<script>
    $("header").load("header.html");
    $("footer").load("foot.html");

    let oli = $(".fen").eq(0).children();
    for (let i = 0; i < oli.length; i++) {
        oli[i].onclick = function () {
            for (var j = 0; j < oli.length; j++) {
                oli[j].style.border = "1px solid rgba(226,226,226,1)";
            }
            oli[i].style.border = "1px solid #000";
            $(".sort").eq(0).css({
                height: 350
            });

            if (i == 0) {
                $(".sort").eq(0).css({
                    height: 680
                });
                $(".sort").eq(0).html(` <li><a href="#">
                        <div>
                            <img src="./images/4.webp" alt="">
                        </div>
                        <h3>公道杯</h3>
                    </a>
                    <p>¥199.00</p>
                </li>
                <li><a href="#">
                        <div>
                            <img src="./images/21.webp" alt="">
                        </div>
                        <h3>紫砂壶</h3>
                    </a>
                    <p>¥500.00</p>
                </li>
                <li><a href="#">
                        <div>
                            <img src="./images/12.webp" alt="">
                        </div>
                        <h3>老铁壶</h3>
                    </a>
                    <p>¥19,999.00</p>
                </li>
                <li><a href="#">
                        <div>
                            <img src="./images/24.webp" alt="">
                        </div>
                        <h3>天目盏</h3>
                    </a>
                    <p>¥300.00</p>
                </li>
               
              
                <li><a href="#">
                        <div>
                            <img src="./images/27.webp" alt="">
                        </div>
                        <h3>紫承</h3>
                    </a>
                    <p>¥300.00</p>
                </li>
                <li><a href="#">
                        <div>
                            <img src="./images/16.webp" alt="">
                        </div>
                        <h3>茶洗</h3>
                    </a>
                    <p>¥399.00</p>
                </li>
            `);
            }
            if (i == 1) {
                $(".sort").eq(0).html(` <li><a href="#">
                        <div>
                            <img src="./images/9.webp" alt="">
                        </div>
                        <h3>柴烧花器</h3>
                    </a>
                    <p>¥500.00</p>
                </li>`);
            }
            if (i == 2) {
                $(".sort").eq(0).html(`  <li><a href="#">
                        <div>
                            <img src="./images/25.webp" alt="">
                        </div>
                        <h3>香炉</h3>
                    </a>
                    <p>¥1,599.00</p>
                </li>`);
            }
            if (i == 3) {
                $(".sort").eq(0).html(` <li><a href="#">
                            <div>
                                <img src="./images/11.webp" alt="">
                            </div>
                            <h3>正安白茶</h3>
                        </a>
                        <p>¥500.00</p>
                    </li>`);
            }
        }
    }
</script>